<!--
  @author heguanghua
  @since 2019/06/12 19:34
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead>
    <tr>
        <th lay-data="{type:'checkbox', width:50, unresize:true, align:'center', fixed:'left'}"></th>
        <th lay-data="{field:'relationId',width:50, unresize:true, align:'center'}">ID</th>
        <th lay-data="{field:'cityName', width:250, unresize:true, align:'center'}">执行城市</th>
        <th lay-data="{field:'type', width:140, unresize:true, align:'center'}">试点类型</th>
        <th lay-data="{field:'payType', width:290, unresize:true, align:'center'}">支付方式</th>
        <th lay-data="{field:'status', unresize:true, align:'center'}">状态</th>
        <th lay-data="{field:'updateTime', unresize:true, align:'center'}">最近修改</th>
        <th lay-data="{field:'操作', width:100, unresize:true, fixed:'right'}">操作</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="item,itemStat:${items}">
        <td></td>
        <td th:text="${item.relationId}"></td>
        <td th:text="${item.cityName == null ? item.provinceName : item.cityName}" class="">cityName</td>
        <td th:text="${T(com.zmn.plat.manager.dictionary.OnePriceDict).getType(item.type)}" class="">type</td>
        <td th:text="${T(com.zmn.common.utils.string.StringUtil).isBlank(item.payType) ?'--':
        T(com.zmn.plat.manager.dictionary.OnePriceDict).getPayType(item.payType)}">payType
        </td>
        <td><input type="checkbox" th:key="${item.status}"
                   th:value="${item.status}" lay-skin="switch"
                   th:checked="${item.status == 2}" disabled/>
        </td>
        <td th:text="${(item.updater != null ? item.updater : item.creater) + '/'
            +(T(com.zmn.common.utils.date.DateUtil).toString(item.updateTime != null ? item.updateTime : item.updateTime))}">
            updateTime
        </td>
        <td>
            <a class="layui-btn layui-btn-xs btn-operate" th:dataId="${item.relationId}" th:dataType="${item.type}"
               th:data-index="${itemStat.index}">操作</a>
        </td>
    </tr>
    </tbody>
</table>